package edu.sctu.jarime.may.day20150508;


/**
 * Created by Administrator on 2015/5/8/0008.
 */
public class TextTwo {

    public String name;
    public int age;
    public int i ;
    public int j ;



    public void  getname(String name){
        System.out.println(name);

    }



    public void getage(int age){
        System.out.println(age);
    }



    protected int calculate(int size,int stop) {
        int result = 0;
        for (; i < size; i--) {
            j += i;
            System.out.println(i + j);
            if (i == stop) {
                break;
            } else {
                result = i + j;
            }
        }

        return result;
    }
}
